<?php
defined('PHP5_PHP') or die("Application is stopping!!!");
$smarty->assign('chkUser', 0);
if(checkLoginUser()) {
	$smarty->assign('chkUser', 1);
}
$smarty->assign('url_setting', sefBuild($php5WebPath, 'index.php?o=settings&m=generate', 1));
$smarty->assign('url_user', sefBuild($php5WebPath, 'index.php?o=users', 1));
$smarty->assign('url_add_user', sefBuild($php5WebPath, 'index.php?o=users&m=create', 1));
$smarty->assign('url_contact', sefBuild($php5WebPath, 'index.php?o=contact', 1));
$smarty->assign('url_account', sefBuild($php5WebPath, 'index.php?o=myaccount', 1));
$smarty->assign('url_logout', sefBuild($php5WebPath, 'index.php?o=logout', 1));
$top_tpl = sprintf($php5TemplateFile, $language, 'main', 'top.tpl');
$smarty->assign('user_id', $php5Session->getVar("user_id"));
$smarty->assign('user_name', $php5Session->getVar("user_name"));
$smarty->assign('user_username', $php5Session->getVar("user_username"));
$smarty->assign('user_type', $php5Session->getVar("user_type"));
$smarty->assign('url_setting', sefBuild($php5WebPath, 'index.php?o=settings&m=generate', 1));
$smarty->assign('url_setting_booking_date', sefBuild($php5WebPath, 'index.php?o=settings&m=booking-date', 1));
$smarty->assign('url_setting_blockout', sefBuild($php5WebPath, 'index.php?o=settings&m=blockout', 1));
$smarty->assign('url_setting_template', sefBuild($php5WebPath, 'index.php?o=settings&m=term', 1));
$smarty->assign('url_setting_term', sefBuild($php5WebPath, 'index.php?o=settings&m=term', 1));
$smarty->assign('url_setting_contactus', sefBuild($php5WebPath, 'index.php?o=settings&m=contact', 1));
$smarty->assign('url_faq', sefBuild($php5WebPath, 'index.php?o=faq', 1));
$smarty->assign('url_testimonatials', sefBuild($php5WebPath, 'index.php?o=testimonials', 1));
$smarty->assign('url_user_group', sefBuild($php5WebPath, 'index.php?o=user_group', 1));
$smarty->assign('url_customer_user', sefBuild($php5WebPath, 'index.php?o=customer', 1));
$smarty->assign('url_newsletter', sefBuild($php5WebPath, 'index.php?o=newsletters', 1));
$smarty->assign('url_newsletter_history', sefBuild($php5WebPath, 'index.php?o=newsletters&m=history', 1));
$smarty->assign('url_export_newsletter', sefBuild($php5WebPath, 'index.php?o=export_newsletter_users', 1));
$smarty->assign('url_import_newsletter', sefBuild($php5WebPath, 'index.php?o=import_newsletter_users', 1));
$smarty->assign('url_adsword_report', sefBuild($php5WebPath, 'index.php?o=adwords&m=category', 1));
$smarty->assign('url_sms_group', sefBuild($php5WebPath, 'index.php?o=sms_group', 1));
$smarty->assign('url_sms', sefBuild($php5WebPath, 'index.php?o=sms', 1));
$smarty->assign('url_sms_history', sefBuild($php5WebPath, 'index.php?o=sms&m=history', 1));

$smarty->assign('top', $smarty->fetch($top_tpl));